package robocup.component.speechacts.coachlanguage;

import java.util.LinkedList;

public class UnumSet {

  private LinkedList<String>  unumStringList = new LinkedList<String>();

  private LinkedList<Integer> unumIntList    = new LinkedList<Integer>();

  public LinkedList<Integer> getUnumIntList() {

    return this.unumIntList;
  }

  public void setUnumIntList(final LinkedList<Integer> unumIntList) {

    this.unumIntList = unumIntList;
  }

  public LinkedList<String> getUnumStringList() {

    return this.unumStringList;
  }

  public void setUnumStringList(final LinkedList<String> unumStringList) {

    this.unumStringList = unumStringList;
  }

  public void addInteger(final int i) {

    this.unumIntList.add(i);
  }

  public void addString(final String s) {

    this.unumStringList.add(s);
  }

  @Override
  public String toString() {

    final StringBuffer buf = new StringBuffer();

    for (final int intElement : this.unumIntList) {
      buf.append(" " + intElement);
    }
    for (final String str : this.unumStringList) {
      buf.append(" " + str);
    }
    if (buf.length() > 0) {
      buf.insert(1, "{");
      buf.append("}");
    }

    return buf.toString();
  }

}
